using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public enum screenRatio
{
	none,
	r43,
	r1610,
	r169,
}

public class GameData {
	
	static screenRatio screenRatio_press;
	/// <summary>
	/// 屏幕高宽比.
	/// </summary>
	public static screenRatio ScreenRatio
	{
		get{
			if(screenRatio_press == screenRatio.none)
			{
				float Pxi = (float)Screen.width/(float)Screen.height;
				if(Pxi < 1.4f && Pxi > 1.2f)
					screenRatio_press = screenRatio.r43;
				else if(Pxi < 1.67f && Pxi > 1.55f)
					screenRatio_press = screenRatio.r1610;
				else if(Pxi < 1.8f && Pxi > 1.67f)
					screenRatio_press = screenRatio.r169;
			}
			return screenRatio_press;
		}
	}
	
	public static MainData mainData = new MainData();
	
	//星球资料.
	public static SortedList<int,PlanetData> PlanetDatas;
	public static SortedList<int,MissionData> MissionDatas;
}
